#{extends '/template/main.html' /}
<script>
    var id='${id}';
    var pageNumber = '${pageNumber}';

    function saveDetail() {
        $('#idForm').submit();
    }

</script>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title" onclick="save()">
            *{<button id="idBtnSave" class="btn btn-info" onclick="saveDetail();">保存</button>}*
        </h3>
        <div class="panel-options">
            <a href="#" data-toggle="panel" >
                <span class="collapse-icon">&ndash;</span>
                <span class="expand-icon">+</span>
            </a>
        </div>
    </div>
    <div class="panel-body">

        <form id="idForm" method="POST" role="form" action="/manage/recharge/RechargeComboCtrl/saveDetail" enctype="multipart/form-data" class="form-horizontal validate">
            <input id="idRechargeComboId" name="rechargeCombo.id" value="${rechargeCombo?.id}" type="hidden">
            <input id="idPageNumber" name="pageNumber" value="${pageNumber}" type="hidden">

            <div class="form-group">
                <label for="idCode" class="col-sm-2 control-label" >充值金额</label>
                <div class="col-sm-10">
                    <input type="number" class="form-control " name="rechargeCombo.rechargeAmount" id="idCode" value="${rechargeCombo?.rechargeAmount}"  placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="idCode" class="col-sm-2 control-label" >赠送金额</label>
                <div class="col-sm-10">
                    <input type="number" class="form-control" name="rechargeCombo.giveAmount" id="idCode" value="${rechargeCombo?.giveAmount}"  placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="idCode" class="col-sm-2 control-label" >套餐类型</label>
                <div class="col-sm-10">
                    <select class="form-control" name="rechargeCombo.goodsType" required data-validate="required">
                        <option value="" #{if rechargeCombo?.goodsType == null } selected="true"#{/if}>请选择套餐类型</option>
                        <option value="PRODUCT" #{if rechargeCombo?.goodsType == enums.GoodsType.PRODUCT } selected="true"#{/if}>水吧</option>
                        <option value="FEIYANGXINGQIU" #{if rechargeCombo?.goodsType == enums.GoodsType.FEIYANGXINGQIU } selected="true"#{/if}>飞氧星球</option>
                        <option value="CURRICULUM" #{if rechargeCombo?.goodsType == enums.GoodsType.CURRICULUM } selected="true"#{/if}>健身</option>
                        *{<option value="FIELD" #{if rechargeCombo?.goodsType == enums.GoodsType.FIELD } selected="true"#{/if}>场地</option>}*
                        <option value="SPORTS_ROOMS" #{if rechargeCombo?.goodsType == enums.GoodsType.SPORTS_ROOMS } selected="true"#{/if}>竞技包房</option>
                        *{<option value="RECHARGE" #{if rechargeCombo?.goodsType == enums.GoodsType.RECHARGE } selected="true"#{/if}>会员卡充值</option>}*
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="idCode" class="col-sm-2 control-label" >启用状态</label>
                <div class="col-sm-10">
                    <select class="form-control" name="rechargeCombo.availableStatus" data-validate="required">
                        *{<option value="" #{if rechargeCombo?.availableStatus == null } selected="true"#{/if}>请选择启用状态</option>}*
                        <option value="AVAILABLE" #{if rechargeCombo?.availableStatus == models.constants.AvailableStatus.AVAILABLE || rechargeCombo?.availableStatus == null} selected="true"#{/if}>启用</option>
                        <option value="FREEZE" #{if rechargeCombo?.availableStatus == models.constants.AvailableStatus.FREEZE } selected="true"#{/if}>禁用</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="bespeak_btn" class="col-sm-2 control-label" ></label>
                <div class="col-sm-10">
                    *{<input type="number" class="form-control" name="rechargeCombo.giveAmount" id="idCode" value="${rechargeCombo?.giveAmount}"  placeholder="">}*
                    <button class="btn btn-info btn-lg" type="submit" id="bespeak_btn">确认保存</button>
                </div>
            </div>
        </form>

    </div>
</div>

<!-- Imported styles on this page -->
<link rel="stylesheet" href="/public/js/wysihtml5/src/bootstrap-wysihtml5.css">
<link rel="stylesheet" href="/public/js/uikit/vendor/codemirror/codemirror.css">
<link rel="stylesheet" href="/public/js/uikit/uikit.css">
<link rel="stylesheet" href="/public/js/uikit/css/addons/uikit.almost-flat.addons.min.css">
<script src="/public/js/wysihtml5/lib/js/wysihtml5-0.3.0.js"></script>
<!-- Imported scripts on this page -->
<script src="/public/js/wysihtml5/src/bootstrap-wysihtml5.js"></script>
<script src="/public/js/uikit/vendor/codemirror/codemirror.js"></script>
<script src="/public/js/uikit/vendor/marked.js"></script>
<script src="/public/js/uikit/js/uikit.min.js"></script>
<script src="/public/js/uikit/js/addons/htmleditor.min.js"></script>
<script src="/public/js/ckeditor/ckeditor.js"></script>
<script src="/public/js/ckeditor/adapters/jquery.js"></script>

<!-- Imported scripts on this page -->
<script src="/public/js/jquery-validate/jquery.validate.min.js"></script>